<?php if ($this->bHtml) : ?>
<div class="ev-option-buttons">
    <ul>
        <li>
            <a class="ui-state-default ui-corner-all" href="<?php echo $this->baseUrl(); ?>/corporativo/papel/documento/id_papel/<?php echo $this->rowPapel->id_papel ?>">
                <span class="ui-icon ui-icon-suitcase"></span>
                Gerar Documento
            </a>
        </li>
    </ul>
</div>
<?php endif; ?>
<table border="1px" cellpadding="3px">
    <tr>
        <th colspan="2" align="center" width="710px"><?php echo $this->rowPapel->st_codigo . ' - ' . $this->rowPapel->st_nome; ?></th>
    </tr>
    <tr>
        <th width="100px">Departamento:</th>
        <td width="610px"><b><?php echo $this->rowPapel->fk_departamento; ?></b></td>
    </tr>
    <tr>
        <th>Reporta-se:</th>
        <td><b><?php echo $this->rowPapel->fk_papel_imediato; ?>&nbsp;</b></td>
    </tr>
    <tr>
        <td>Missão:</td>
        <td><?php echo $this->rowPapel->st_missao; ?></td>
    </tr>
    <tr>
        <th colspan="2" align="center" width="710px"><b>Responsabilidades:</b></th>
    </tr>
    <?php if (count($this->rowSetAtividades)) : ?>
    <tr>
        <td colspan="2">
            <table border="0px">
        <?php foreach ($this->rowSetAtividades as $rowAtividade) : ?>
                <tr>
                    <td width="40px"><?php echo $rowAtividade->st_codigo; ?></td>
                    <td width="810px"><?php echo $rowAtividade->st_nome; ?></td>
                </tr>
        <?php endforeach; ?>
            </table>
        </td>
    </tr>
    <?php endif; ?>
</table>